<%@ page import="com.bobamrz.domain.DocType, com.bobamrz.domain.DocCatalog, com.bobamrz.domain.Document, java.util.Set, java.util.List;" %>
<script>
var documentData = <%out.print(request.getAttribute("documentData"));%>;
</script>
<script src="js/clipboard.js"></script>
<link rel="stylesheet" type="text/css" href="css/docView.css">
<div id="document_list">
<%
List<Document> docList = (List<Document>)request.getAttribute("docList");
//out.println("<script>alert('amount of documents in this catalogue: "+docList.size()+"')</script>");
boolean isCatalogEmpty = true;
for(Document doc : docList) {
	/*doc.getDocument()   --->  eto id???*/
	out.println("<span name='"+doc.getDocument()+"'><a class='link_to_document' docId='" + doc.getDocument() + "' href='#'>" + doc.getName() + "</a>");
	out.println("<button id='"+doc.getDocument()+"' class='removeFromClipboard'>Remove</button>");
	out.println("<input style='width:10px' class='checkbox' type='checkbox' id='"+doc.getDocument()+"'/><br/></span>");
	isCatalogEmpty=false;
}
if(isCatalogEmpty) {
	out.println("Empty<br/>");
}
%>
<button id='removeChecked' >Remove checked</button>
<button id='removeAll' >Remove all</button>
</div>